package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class ConsigneeInfoBean implements IJsonParser, Serializable{
	/**
	 *  "consignee": {
        "delivery_way": "快递运输",
        "phone": "13311111111",
        "consignee_id": 13,
        "actor_id": 28,
        "area": "测试地区",
        "is_default": false,
        "address": "测试地址",
        "name": "测试地址"
    }
	 */
	private static final long serialVersionUID = 1L;
	private ConsigneeBean consignee;

public ConsigneeBean getConsignee() {
		return consignee;
	}

public IJsonParser parse(String json) throws Exception {
	// TODO Auto-generated method stub
	Gson   gson = null;
	if(null != json){
		GsonBuilder b = new GsonBuilder();
		gson  = b.create();
		return gson.fromJson(json, ConsigneeInfoBean.class);
	}
	return null;
}
}